<?php
namespace app\validate;

use think\Validate;

class Token extends Validate
{
    protected $rule = [
        'pass'     => 'require|length:6,20',
        'code'        => 'require|length:6',
    ];

    protected $message = [
        'pass.require'       => '必须填写新支付密码',
        'pass.length'        => '新支付密码至少6位',
        'code.require'          => '必须填写短信验证码',
        'code.length'           => '短信验证码至少6位',
    ];

}


